/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ucjava.chat.admanager;

import java.rmi.Remote;
import java.rmi.RemoteException;


/**
 *Interface for pushing ads to client and selling 
 * ads to clients
 * @author Andrew
 * 
 */
public interface IAdvertising extends Remote{
     /*
     * This is the method to sell ads to the client users. 
     * This method will take a String object to serve as the ad itself. 
     */
    public void sellAds(String ad) throws RemoteException;
    
    /*
     * This method takes a int as an argument, this will give the random
     * equation a number to seed from inorder to not throw and exception if a 
     * tried to retrieve a position from the array that's none existent. Then pushes 
     * a random ad from the collection to the client(s)
     */
    public String pushAds() throws RemoteException;
    
}
